package pswvclass.pswvandroid2.com.category;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;

import pswvclass.pswvandroid2.R;
import pswvclass.pswvandroid2.com.kwords.KwordList;

/**
 * Created by Administrator on 2018/11/4.
 */
public class CategorySee extends Fragment implements View.OnClickListener {
    private String tag = "KwordSee";
    private EditText name;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {

        return inflater.inflate(R.layout.pswv_category_see, null);
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        Bundle bundle = getArguments();
        if (bundle != null) {
            String name1 = bundle.getString("name");
            name = (EditText) getView().findViewById(R.id.category_name);
            name.setText(name1);
        }
    }

    @Override
    public void onClick(View view) {
        int id = view.getId();
        switch (id) {
            default:
                break;
        }
    }
}
